{% extends 'ApiCloud/Base/layout.common.html.twig' %}

{% block body %}
    {% include "ApiCloud/Base/inc.head.light.html.twig" with {title:"项目信息",back:1} %}
    {#{% include "ApiCloud/Base/inc.site.base.html.twig" with {site:"项目流转"} %}#}
    <div class="fs10 pad5">
        <mu-form ref="form" :model="en"  label-position="top" label-width="200">
            <mu-form-item label="站点名称" :rules="[rules.notNull]" prop="name">
                    <mu-text-field v-model="en.name"  full-width></mu-text-field>
            </mu-form-item>
            <mu-form-item label="负责人" :rules="[rules.notNull]" prop="manager">
                <mu-select v-model="en.manager" full-width>
                    <mu-option v-for="option,index in managers"
                               :key="index" :label="option" :value="index"></mu-option>
                </mu-select>
                    {#<mu-text-field v-model="en.manager"  full-width></mu-text-field>#}
            </mu-form-item>
            <mu-form-item label="站点编号" :rules="[rules.notNull]" prop="sn">
                    <mu-text-field v-model="en.sn"  full-width></mu-text-field>
            </mu-form-item>
            <mu-form-item label="站点属性" :rules="[rules.notNull]" prop="attr">
                <mu-select v-model="en.attr" full-width>
                    <mu-option v-for="option,index in attrs"
                               :key="index" :label="option" :value="index"></mu-option>
                </mu-select>
            </mu-form-item>
            <mu-form-item label="简单说明" :rules="[rules.notNull]" prop="info">
                    <mu-text-field v-model="en.info"  multi-line :rows="3" :rows-max="6"  full-width></mu-text-field>
            </mu-form-item>
            <mu-form-item label="所在区域" :rules="[rules.notNull]" prop="areaCategory">
                <mu-select v-model="en.areaCategory" full-width>
                    <mu-option v-for="option in szqy"
                               :key="option.id" :label="option.name" :value="option.id"></mu-option>
                </mu-select>
            </mu-form-item>
            <mu-form-item label="中标单位" :rules="[rules.notNull]" prop="siteCategory">
                <mu-select v-model="en.siteCategory" full-width>
                    <mu-option v-for="option in zbdw"
                               :key="option.id" :label="option.name" :value="option.id"></mu-option>
                </mu-select>
            </mu-form-item>
            <mu-form-item label="送审资料" :rules="[]" prop="fileId">
                <mu-select v-model="en.fileId" full-width>
                    <mu-option v-for="option,index in files"
                               :key="index" :label="option" :value="index"></mu-option>
                </mu-select>
            </mu-form-item>

            <div class="fs8 c11 pad5 mart20">
                <mu-button large full-width round color="primary" @click="submit()">保存提交</mu-button>
            </div>
        </mu-form>

    </div>
{% endblock %}
